/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.caro.actions;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JOptionPane;
import org.caro.gui.ChatZonePanel;

/**
 *
 * @author PhucAnh
 */
public class ChatZoneListener implements ActionListener{
    private ChatZonePanel zone;
public ChatZoneListener(ChatZonePanel zone){
  this.zone = zone;
  zone.getSendButton().addActionListener(this);
}
    @Override
    public void actionPerformed(ActionEvent e) {
        if(e.getSource()==zone.getSendButton()){
            JOptionPane.showMessageDialog(null, "controled");
        }
    }
    
}
